//
//  LGDCBaseCell.h
//  celltest
//
//  Created by guomianxiang on 2017/4/7.
//  Copyright © 2017年 guomianxiang. All rights reserved.
//

#import <UIKit/UIKit.h>

//#import "LGDCCellContent.h"
#import "LGControllerManager.h"
#import "LGController.h"
#import "LGDoor.h"
#import "LGEditInfoTextField.h"

@class LGDCCellContent;

/**
 LGDCDelegate协议
 */
@protocol LGDCDelegate <LGInputAccessoryViewActionDelegate>

@optional

/**
 LGButtonCell发生点击
 */
- (void)cellButtonClick;

/**
 LGEditCell完成编辑，验证内容格式是否正确

 @param content 当前cell对应的ViewModel，LGDCCellContent.contentText保存编辑的内容
 @return 格式是否正确 正确返回YES
 */
- (BOOL)validateWithContent:(LGDCCellContent *)content;

/**
 LGEditCell开始编辑

 @param bottom 当前cell的Bottom
 */
- (void)cellDidBeginEditing:(CGFloat)bottom andIndexpath:(NSIndexPath *)indexPath;

@end


@interface LGDCBaseCell : UITableViewCell

/**
 cell对应的viewModel
 */
@property (weak, nonatomic) LGDCCellContent *content;

/**
 此属性暂时没用，viewmodel中有记录indexpath
 */
@property (strong, nonatomic) NSIndexPath *indexPath;

/**
 cell的代理
 */
@property (weak, nonatomic) id<LGDCDelegate> delegate;

@end
